class_name HoldDefensePotion
extends BaseHoldItem


func use():
	var config = item_data.item_config as ConsumableConfig
	var player = holder as Player
	GlobalData.player_data.additional_defense += config.add_defence
	GlobalSignals.player_info_changed.emit()
	player.level.emit_particle("particle_add_defense_effect", player.ray_cast_point.global_position)
